import request from '@/utils/request'

export const addOneAgentCashOut = data => request({
  url: '/addOneAgentCashOut',
  method: 'put',
  data: data || {}
})

export const deleteOneAgentCashOut = id => request({
  url: '/deleteOneAgentCashOut/' + id,
  method: 'delete'
})

export const updateOneAgentCashOut = data => request({
  url: '/updateOneAgentCashOut',
  method: 'patch',
  data: data || {}
})

export const getOneAgentCashOut = id => request({
  url: '/getOneAgentCashOut/' + id,
  method: 'get'
})

export const getAgentCashOutList = data => request({
  url: '/getAgentCashOutList',
  method: 'post',
  data: data || {}
})

export const getAllAgentCashOutList = () => request({
  url: '/getAllAgentCashOutList',
  method: 'get'
})

